import myaxios from "../MyAxios";
import URLENV from "@/http/BaseUrl";
const JSFURL = URLENV.JSFURL;

const PLessonApi = {

  /** 通过ID查询私教课程列表 */
  lessonListById(params){
    let url = JSFURL + '/course/getbycoach_id'
    return myaxios.get(url,params)
  },

  /** 新增课程 */
  add(params){
    let url = JSFURL + '/course/course_add'
    return myaxios.post(url,params)
  },

  /** 删除课程 */
  delete(params){
    let url = JSFURL + '/course/course_del'
    return myaxios.post(url,params)
  },

  /** 修改课程 */
  update(params){
    let url = JSFURL + '/course/course_update'
    return myaxios.post(url,params)
  },

  /** 根据id查询课程信息 */
  queryById(params){
    let url = JSFURL + '/course/store_courselist'
    return myaxios.get(url,params)
  }
 

}

export default PLessonApi